// pages/UserModule/followingUsers.js
const app = getApp()
Page({

    data: {
        userList: {},
        currentPage: 1,
        pageSize: 20,
    },

    onLoad: function (options) {
        var that = this
        that.getUserList()
    },
    getUserList(){
        var that = this
        wx.request({
            url: `http://${app.globalData.target}/user/followingUserList`,
            data: {
                currentPage: that.data.currentPage,
                pageSize: that.data.pageSize
            },
            header: {
                "hello-token": wx.getStorageSync("hello-token")
            },
            method: 'GET',
            success: function(res){
                console.log(res)
                that.setData({
                    userList: res.data.result.userList
                })
            },
            fail: function(e){
                console.log(e)
            }
        })
    }



})